﻿using System;
using System.Windows;
using Bulb.Core.ViewModels;
using Cirrious.MvvmCross.WindowsPhone.Views;

namespace Bulb.UI.WindowsPhone.Views
{
    public partial class EditBulbView : MvxPhonePage
    {
        public EditBulbView()
        {
            InitializeComponent();
        }

        private void ApplicationBarIconButtonCancel_OnClick(object sender, EventArgs e)
        {
            ((EditBulbViewModel) ViewModel).CancelCommand.Execute(null);
        }

        private void ApplicationBarIconButtonCheck_OnClick(object sender, EventArgs e)
        {
            ((EditBulbViewModel)ViewModel).UpdateCommand.Execute(null);
        }
    }
}